package io.kblog.support

import kotlin.reflect.KClass

/**
 * @author hsdllcw
 * 将下列注解标记在需要返回json的Controller中。要注意的是，该controller不要有@ResponseBody
 */

@Repeatable
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class JSON(val type: KClass<*>, val include: String = "", val filter: String = "")

@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
annotation class JSONS(vararg val value: JSON)